From: Keir Fraser Date: Wed, 12 Aug 2009 13:13:54 +0000 (+0100) Subject: x86 svm: Fix PAT MSR handling when using Nested Paging. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13489 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=6ebb9d5ec8073d416a743739dc27108d2649830b;p=xen.git x86 svm: Fix PAT MSR handling when using Nested Paging. Accesses to the MSR should not be intercepted. Signed-off-by: Christoph Egger Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/svm/vmcb.c b/xen/arch/x86/hvm/svm/vmcb.c index 7366ecd22b..6f1f087d88 100644 --- a/xen/arch/x86/hvm/svm/vmcb.c +++ b/xen/arch/x86/hvm/svm/vmcb.c @@ -243,6 +243,9 @@ static int construct_vmcb(struct vcpu *v) * that need to be fixed up. */ vmcb->general1_intercepts &= ~GENERAL1_INTERCEPT_INVLPG; + + /* PAT is under complete control of SVM when using nested paging. */ + svm_disable_intercept_for_msr(v, MSR_IA32_CR_PAT); } else {